wechatH5Login() {
    const that = this
    let href = window.location.origin;
    let page = that.$core.prePage()
    let fromMemberId = uni.getStorageSync("fromMemberId");
    console.log(fromMemberId);
    let prePath = "";
    if (undefined != fromMemberId) {
     prePath = '/pages/index/index?memberId=' + fromMemberId
    } else {
     prePath = '/pages/index/index';
    }
    if (page) {
     prePath = page.__page__.path
    }
    console.log(href);
    console.log(prePath);
    window.location = 'https://open.weixin.qq.com/connect/oauth2/authorize?' +
     'appid=' + that.$config.dev.h5Appid + '&redirect_uri=' + escape(href) +
     '&response_type=code&connect_redirect=1&scope=snsapi_userinfo&state=' + escape(prePath) + '#wechat_redirect'
   },
   
   async onLoad(options) {
      console.log(options.code);
      console.log(options.state);
      let result = {};
      if (options.code && options.state) {
       console.log(options.code);
       const that = this;
       let params = {
        code: options.code
       }
       result = await Api.apiCall('get', Api.member.weixinLogin, params);
       console.log(result);
       this.login(result);
      }
      let fromMemberId = options.memberId;
      //fromMemberId = 73;
      console.log("fromMemberId=" + fromMemberId);
      if (undefined != fromMemberId) {
       uni.setStorageSync("fromMemberId", fromMemberId);
      }
      if (this.hasLogin) {
       let fromMemberId = uni.getStorageSync("fromMemberId");
       if (undefined != fromMemberId) {
        this.bindFromMember(fromMemberId);
       }
      }
      this.loadData();
     },